package nl.stil4m.transmission.api.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import nl.stil4m.transmission.api.domain.ids.Ids;

@Builder
@AllArgsConstructor
public class SetTorrentLocationInfo {

    /**
     * Torrent list
     */
    private Ids ids;

    /**
     * New location of the torrent's content
     */
    private String location;
    /**
     * if true, move from previous location.
     * otherwise, search "location" for files
     * (default: false)
     */
    private Boolean move;

    public Object getIds() {
        if (ids == null) {
            return ids;
        }
        return ids.theObject();
    }

    public void setIds(Ids ids) {
        this.ids = ids;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Boolean getMove() {
        return move;
    }

    public void setMove(Boolean move) {
        this.move = move;
    }
}
